<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BIBLIO: /home/marco/workspace/biblio/src/biblio.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BIBLIO
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/marco/workspace/biblio/src/biblio.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="biblio_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BIBLIO_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BIBLIO_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;errno.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00013"></a>00013 
<a name="l00018"></a>00018 <span class="preprocessor">#define _AUTORE &quot;autore&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _TITOLO &quot;titolo&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define _EDITORE &quot;editore&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define _LUOGO_PUBBLICAZIONE &quot;luogo_pubblicazione&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _ANNO &quot;anno&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _COLLOCAZIONE &quot;collocazione&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define _DESCRIZIONE_FISICA &quot;descrizione_fisica&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define _NOTA &quot;nota&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define _PRESTITO &quot;prestito&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define MESSAGE_FIELDS {_AUTORE, _TITOLO, _EDITORE, _LUOGO_PUBBLICAZIONE,       _ANNO, _COLLOCAZIONE, _DESCRIZIONE_FISICA, _NOTA, _PRESTITO}</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#define MALLOC(p,s) p = malloc(s); if (p == NULL) {errno = ENOMEM; return(NULL);} else {;}</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define MALLOC_M1(p,s) p = malloc(s); if (p == NULL) {errno = ENOMEM; return(-1);} else {;}</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="preprocessor">#define NULL_PARAM(p) if (p == NULL) {errno = EINVAL; return(NULL);} else {;}</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define NULL_PAR_M1(p) if (p == NULL) {errno = EINVAL; return(-1);} else {;}</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#define EC_M1(s) if ((s) == -1) {return(-1);}</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#define EC_NULL_M1(s) if((s) == NULL) {return(-1);}</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#define ERROR -1</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define OK 0</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 <span class="preprocessor">#endif </span><span class="comment">/* BIBLIO_H_ */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Jun 29 2012 10:36:44 for BIBLIO by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
